    <h2>Backlink overview</h2>
    <table class="scrollTable">
        <thead>
            <tr>
                <th>Partner</th>
                <th>Link</th>
                <th>Description</th>
            </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
    <script type="text/javascript">
        $('.scrollTable').dataTable({ "sAjaxSource": base_url+"index.php/portal/getBacklinks", "sPaginationType": "full_numbers", "bRetrieve": true });
    </script>
    <input type="button" name="addBacklink" class="button" value="Add" id="showAddBacklinkForm" style="float:right;" onclick="showForm()"/>
    <div class="addBacklinkForm">

        <div class="backlinkField" style="display:none;" id="backlinkForm">
            <form>
            <label>Partner:</label>
            <select id="backlinkPartner" name="partner_id">
                <option value="">-- Select one --</option>
                <?
                foreach($partners as $p) {
                    echo '<option value="'.$p->id.'">'.$p->name.'</option>';
                }
                ?>
            </select>
            <label>Link:</label>
            <input id="backlinkLink" type="text" name="link" />

            <label>Description:</label>

            <textarea cols="7" rows="6" name="description" class="textArea" id="backlinkDesc" ></textarea> 
            
            </form>
            <div class="formButton" id="formButton" style="position:absolute; left:770px; top:730px;">
                <input type="button" id="cancelAddBacklink" class="button" name="hideAddBacklinkForm" value="Cancel" onclick="hideForm()"/>
                <input type="submit" id="addBacklink" class="button" name="addBacklink" value="Save"/>
                <script type="text/javascript">
                    $('#addBacklink').click(addBacklink());
                </script>
            </div>
        </div>  
          <div class="errorSmall"></div> 
            <div class="successSmall"></div>
    </div>
            
          
            

      
    
    
    